import requests

class LoginAPI():


    def __init__(self):
        self.url_verify = "http://127.0.0.1/index.php?m=Home&c=User&a=verify&', params={'r': '0.4399083608607097"
        self.url_login = "http://127.0.0.1/index.php?m=Home&c=User&a=do_login&t=0.21816922937371297"
        self.headers = {'Content-Type': 'application/x-www-form-urlencoded'}


    def tpshop_login(self, my_session, resq_data):


        my_session.get(self.url_verify)

        resq = my_session.post(url=self.url_login, headers=self.headers, data=resq_data)

        return resq


